<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--引用CSS-->
	<link rel="stylesheet" type="text/css" href="css/mycss.css">
		<script type="text/javascript">
	
	
	function del()
	{
		if(confirm("Are you sure?"))
		{
			return true;
		}
		
		return false;
	}
	</script>
	
	
	
  </head>
  
  <body>
  <table width="773" height="787" border="1" align="center">
  
  <tr>
    <td height="112" colspan="2"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  
  
  <tr>
    <td width="25%" height="500"><div align="center">
    
    left.jsp
    <jsp:include flush="true" page="left.jsp"></jsp:include>
    </div></td>
    
    
    
    <td width="75%"><div align="center" >    
   
     <center>
      	 <h1><font color="red"><center>Users List</center></font></h1>
   
   
   <table border="1" width="100%" align="center">
   
   	<tr>
      
    <th>管理员ID</th>
	<th>账户</th>
	<th>密码</th>
	<th>注册时间</th> 
   	<td>删除</td>
   	<td>更新</td>
 	
   	</tr>
   
   	<s:iterator value="#request.list" id="us" >
    <tr>
  
	<td><s:property value="id" /></td>
	<td><s:property value="loginName"/></td>
	<td><s:property value="loginPwd"/></td>
	<td><s:property value="registerDate"/></td>
	<td>
	<a href="deleteAdmin.action?admin.id=<s:property value="id"/>" onclick="return del();">delete</a>
   	</td>
   	<td>
   	<a href="updateAdmin1.action?admin.id=<s:property value="id"/>" onclick="return del();">update</a>
   	</td>
    </tr>
   		
   	
   	</s:iterator>

   </table>

     </center>
     
     <hr>
     <a href="manager">管理员进入链接</a>
     

     
    </div></td>
  </tr>
  
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div></td>
  </tr>
    
  
</table>
  </body>
</html>

